package com.sdk.chris.usersdk.feign;

import com.common.chris.entity.R;
import com.github.pagehelper.PageInfo;
import com.sdk.chris.usersdk.dto.UserDTO;
import com.sdk.chris.usersdk.sentinel.UserTestFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "${sdk.service.name.user:user}", fallback = UserTestFallback.class)
public interface UserTestFeignClient {

    @GetMapping("/list/user")
    R<PageInfo<UserDTO>> listUser();


    @PostMapping("/user/add")
    R<Integer> add();

}
